package po.coursepo;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import Enum.Building;

public class Classroom implements Serializable{
	Building building;
	int room;
	
	public Classroom(Building b, int room) throws RemoteException{
		this.building = b;
		this.room = room;
	}
	
	public Building getBuilding() throws RemoteException{
		return building;
	}
	
	public int getRoom() throws RemoteException{
		return room;
	}
	public void setBuilding(Building building) {
		this.building=building;
	}
	public void setRoom(int room) {
		this.room=room;
	}
	
	public String toStr(){
		String place = building.toString()+"-"+room;
		return place;
	}
}

